package com.hsyt.pms.security.rsa.util;


import java.io.Serializable;
import java.util.UUID;

public class RsaKeyPair implements Serializable {
	private static final long serialVersionUID = -741471372149714869L;
	private String uniqueId;
	private String privateKey;
	private String publicKey;

	public RsaKeyPair() {
		this.uniqueId = UUID.randomUUID().toString().replaceAll("-", "");
	}

	public RsaKeyPair(String privateKey, String publicKey) {
		this();
		this.privateKey = privateKey;
		this.publicKey = publicKey;
	}

	public String getUniqueId() {
		return this.uniqueId;
	}

	public void setUniqueId(String uniqueId) {
		this.uniqueId = uniqueId;
	}

	public String getPrivateKey() {
		return this.privateKey;
	}

	public void setPrivateKey(String privateKey) {
		this.privateKey = privateKey;
	}

	public String getPublicKey() {
		return this.publicKey;
	}

	public void setPublicKey(String publicKey) {
		this.publicKey = publicKey;
	}

	public String toString() {
		return "RsaKeyPair [uniqueId=" + this.uniqueId + ", privateKey=" + this.privateKey + ", publicKey=" + this.publicKey + "]";
	}
}